package com.hafu.model;

public class User {
    private String userId;       // 用户ID（学生/教师/管理员）
    private String username;     // 用户名
    private String password;     // 密码
    private String role;         // 角色（student/teacher/admin）

    // 构造方法
    public User(String userId, String username, String password, String role) {
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.role = role;
    }

    public User() {
        super();
    }

    public String getUserId() {
        return userId;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }

    public String getRole() {
        return role;
    }

    public void setUserId(String user_id) {
        this.userId = user_id;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setRole(String role) {
        this.role = role;
    }

    // Getter/Setter方法（省略）
}